package com.bishe.admin;

import com.bishe.common.Configuration.MinIoProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//@Import({MinIoUtil.class, MinIoController.class, MailMsg.class, MailController.class})
@ComponentScan(basePackages = {"com.bishe"})
@ServletComponentScan(basePackages = "com.bishe.common.filter")
public class BiSheAdminApplication {
	@Bean
	@ConfigurationProperties(prefix = "minio")
	public MinIoProperties minIoProperties() {
		return new MinIoProperties();
	}
	public static void main(String[] args) {
		SpringApplication.run(BiSheAdminApplication.class, args);
		System.out.println("ヾ(◍°∇°◍)ﾉﾞ启动成功ヾ(◍°∇°◍)ﾉﾞ");
	}

}
